<?php if(!defined('IN_FANWE')) exit('Access Denied'); ?>
<?php 
$css_list[0]['url'] = './tpl/css/welcome.css';
$js_list[0] = './tpl/js/welcome.js';
$js_list[1] = './public/js/jquery.slides.js';
 include template('inc/header'); ?><div id="body" class="fm960">
<div class="piece1 mb20">
<div class="piece1_left"></div>
<div class="piece1_hd"></div>
<div class="piece1_bd"><!--dynamic advLayoutName args=首页轮播广告位,adv/indexlflashadv,--><div class="index-active-list fr"><!--dynamic getIndexUserInfo--><!--dynamic advLayoutName args=首页右侧用户信息底部广告位,adv/user_info_bottom_adv,--><div class="mobile">
<a class="mbtn iphone" href="<?php echo $_FANWE['setting']['app_down_url'];?>" target="_blank" title="iPhone客户端">iphone客户端</a>
<a class="mbtn android" href="<?php echo $_FANWE['setting']['apk_down_url'];?>" target="_blank" title="Android客户端">Andioid客户端</a>
</div>
</div>
<div class="blank3"></div>
</div>
<div class="piece1_ft"></div>
</div>
<div class="piece1 mb20" >
<div class="piece1_hd"></div>
<div class="piece1_bd clearfix">
<div class="index_ddl_nav" >
<h2>MM们的搭配和晒货</h2>
<ul>
<li><a href="<?php echo FU('dapei/index',array()); ?>" class="style">全部搭配</a></li>
<li><a href="<?php echo FU('look/index',array()); ?>">全部晒货</a></li>
<li><a href="<?php echo FU('daren/apply',array()); ?>">申请达人</a></li>
</ul>
</div>
<div class="index_ddl_box">
<ul class="index_dapei_look fl"><?php if(is_array($look_bests)) { foreach($look_bests as $share) { ?><li>
<a href="<?php echo $share['look_imgs']['0']['url'];?>" target="_blank" style="display:block;width:150px;height:170px;overflow:hidden;"><img class="dr lazyload" src="./tpl/images/lazyload.gif" original="<?php echo getImgName($share['look_imgs'][0]['img'],200,999,0); ?>" title="<?php echo $share['best_desc'];?>" src="./tpl/images/lazyload.gif" scaleType="3" scaleWidth="150" scaleHeight="170"/></a>
<span></span><?php echo setTplUserFormat($share['uid'],0,0,'',0,'n','',''); ?></li>
<?php } } ?>
</ul>
<div class="index_today_daren fl" >
<a href="<?php echo FU('daren/index',array()); ?>" style="display:block;width:300px;height:345px;overflow:hidden;"><img original="<?php echo getImgName($today_daren['index_img'],0,0,0); ?>" src="./tpl/images/lazyload.gif" class="lazyload" scaleType="3" scaleWidth="300" scaleHeight="345"/></a> 
<span></span>
<div class="daren_item_info" >
<div class="clear_in" >
<p>每日达人： <a href="<?php echo FU('daren/index',array()); ?>"><?php echo $today_daren['user']['user_name'];?></a></p>
</div>
<i><?php echo $today_daren['reason'];?></i>
</div>
</div>
<ul class="index_dapei_look fl"><?php if(is_array($dapei_bests)) { foreach($dapei_bests as $share) { ?><li>
<a href="<?php echo $share['dapei_imgs']['0']['url'];?>" target="_blank" style="display:block;width:150px;height:170px;overflow:hidden;"><img class="dr lazyload" src="./tpl/images/lazyload.gif" original="<?php echo getImgName($share['dapei_imgs'][0]['img'],200,999,0); ?>" title="<?php echo $share['best_desc'];?>" src="./tpl/images/lazyload.gif" scaleType="3" scaleWidth="150" scaleHeight="170"/></a>
<span></span><?php echo setTplUserFormat($share['uid'],0,0,'',0,'n','',''); ?></li>
<?php } } ?>
</ul>
</div>
<div class="blank9"></div>
</div>
<div class="piece1_ft"></div>
</div>
<div class="piece1 mb20" >
<div class="piece1_hd"></div>
<div class="piece1_bd clearfix">
<div class="index_ddl_nav" >
<h2>MM们扎堆的小组</h2>
</div>
<div class="blank9"></div>
<div class="index_group_box fl" >
<div class="active_group_slide" ><?php if(is_array($group_list)) { foreach($group_list as $groups) { ?><ul class="active_group_list"><?php if(is_array($groups)) { foreach($groups as $group_item) { ?><li>
<a target="_blank" href="<?php echo FU('group/detail',array("fid"=>$group_item['fid'])); ?>" class="fl"><img src="<?php echo getImgName($group_item['icon']['img'],100,100,1); ?>" class="r5" alt="<?php echo $group_item['name'];?>"></a>
<h3 class="ag_t"><a target="_blank" href="<?php echo FU('group/detail',array("fid"=>$group_item['fid'])); ?>" class="glink"><?php echo $group_item['name'];?></a></h3>
<p class="ag_i"><span><b><?php echo $group_item['user_count'];?></b>成员</span><span><b><?php echo $group_item['thread_count'];?></b>分享</span></p>
<p class="ag_d"><?php echo cutStr($group_item['content'],60,'...');?></p>
</li>
<?php } } ?>

</ul>
<?php } } ?>
</div>
<div class="active_group_slide_link" >
<div class="active_group_slide_btn" >

</div>
<a href="<?php echo FU('group/index',array()); ?>" target="_blank" class="more" ><div class="arrows" ></div>查看更多小组</a>
</div>
<script type="text/javascript">
jQuery(function($){
$(".active_group_slide").carouFredSel({
items:1, 
auto : true,
pauseDuration:3000,
pagination: ".active_group_slide_btn",
scroll: {
fx: "crossfade",
pauseOnHover: true
}
});
});
</script>
<ul class="reco_topic_list clear_in"><?php if(is_array($topic_list)) { foreach($topic_list as $topic) { ?><li>
<a target="_blank" href="<?php echo FU('u/index',array("uid"=>$topic['uid'])); ?>"> <img height="32" src="<?php echo getImgName($topic['group']['icon']['img'],100,100,1); ?>" alt="<?php echo $topic['title'];?>" class="fl r3"></a>
<p class="rt_tt"><a target="_blank" href="<?php echo $topic['url'];?>" class="tlink"><?php echo $topic['title'];?></a></p>
<p class="rt_gt"><a target="_blank" href="<?php echo FU('group/detail',array("fid"=>$topic['fid'])); ?>" class="glink"><?php echo $topic['group']['name'];?></a></p>
</li>
<?php } } ?>
</ul>
</div>
<div class="index_album_box fr" >
<div class="index_ddl_nav" >
<h2>最新推荐专辑</h2>
</div>
<ul class="index_album_list" ><?php if(is_array($best_albums)) { foreach($best_albums as $album) { ?><li class="index_album_item" >
<ul class="album_img clearfix fl"><?php $img_index = 0; if(is_array($album['imgs'])) { foreach($album['imgs'] as $img) { if($img_index < 3) { ?>
<li>
<a href="<?php echo $album['url'];?>" class="rl5" target="_blank"><img src="<?php echo getImgName($img['img'],100,100,1); ?>"/></a>
</li><?php $img_index++; } } } ?>
</ul>
<div class="album_info fl">
<h4><a target="_blank" href="<?php echo $album['url'];?>" title="<?php echo $album['title'];?>"><?php echo cutStr($album['title'],12,'...');?></a></h4>
<div class="album_likenum"><?php echo $album['collect_count'];?></div>
</div>
</li>
<?php } } ?>
</ul>
<h3 class="index_album_title" >MM们心水的专辑</h3>
<ul class="album_more_list" >
<li><a href="<?php echo FU('album/index',array()); ?>" title="全部">全部</a></li><?php if(is_array($_FANWE['cache']['albums']['category'])) { foreach($_FANWE['cache']['albums']['category'] as $category) { ?><li><a href="<?php echo $category['url'];?>" title="<?php echo $category['name'];?>"><?php echo $category['name'];?></a></li>
<?php } } ?>
</ul>
</div>
</div>
<div class="piece1_ft"></div>
</div><!--dynamic getIndexCateShare--><!--dynamic getIndexShops--></div><?php include template('inc/footer'); ?>